<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>后台首页</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="/static/admin/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="/static/admin/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    {js href="/static/admin/js/echarts.min.js"}
    {css href="/static/admin/css/amazeui.min.css"}
    {css href="/static/admin/css/amazeui.datatables.min.css"}
    {css href="/static/admin/css/app.css"}
    {js href="/static/admin/js/jquery.min.js"}
    {load href="/static/index/css/bootstrap.min.css"}
    {js href="/static/index/js/jquery.min.js"}
    {js href="/static/index/js/bootstrap.min.js"}

</head>

<body data-type="login">
    {js href="/static/admin/js/theme.js"}
    <div class="am-g tpl-g">
        <!-- 风格切换 -->
        <div class="tpl-skiner">
            <div class="tpl-skiner-toggle am-icon-cog">
            </div>
            <div class="tpl-skiner-content">
                <div class="tpl-skiner-content-title">
                    选择主题
                </div>
                <div class="tpl-skiner-content-bar">
                    <span class="skiner-color skiner-white" data-color="theme-white"></span>
                    <span class="skiner-color skiner-black" data-color="theme-black"></span>
                </div>
            </div>
        </div>
        <div class="tpl-login">
            <div class="tpl-login-content">
                <div class="tpl-login-logo">

                </div>



                <form class="form-group" action="adminLoginLogin" method="post">
                    <div class="form-group">
                        <label for="">用户名</label>
                        <input name="username" class="form-control" type="text" placeholder="6-15位字母或数字">
                    </div>
                    <div class="form-group">
                        <label for="">密码</label>
                        <input name="password" class="form-control" type="password" placeholder="至少6位字母或数字">
                    </div>
                    <div class="form-group">
                        <label for="">请输入验证码</label>
                        <div class="row">
                            <div class="col-md-4">
                                <img id="captcha_img" src="{:captcha_src()}" alt="captcha" onclick="refresh()">
                            </div>
                            <div class="col-md-8">
                                <input type="password" class="form-control" id="" name="code" placeholder="请输入验证码">
                            </div>
                        </div>
                    <div class="text-right">
                        <button class="btn btn-primary" type="submit">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    {js href="/static/admin/js/amazeui.min.js"}
    {js href="/static/admin/js/app.js"}
    <script>
        function refresh(){
            var ts = Date.parse(new Date())/1000;
            $('#captcha_img').attr('src','/captcha?id=' + ts);
        }
    </script>

</body>

</html>